import Axios from "axios"

export const createStoreGoods = async (data) => {
    return await Axios({
        url:'/api/stores/create',
        method:"post",
        data
    })
}
export const getStoreGoods = async (listQuery) => {
    return await Axios({
        url:'/api/stores',
        method:"get",
        params:listQuery
    })
}
export const updateStoreGoods = async (listQuery) => {
    return await Axios({
        url:'/api/stores/update',
        method:"post",
        data:listQuery
    })
}
export const deleteStoreGoods = async (_id) => {
    return await Axios({
        url:'/api/stores/delete',
        method:"post",
        data:{_id}
    })
}

export const createStoreServe = async (data) => {
    return await Axios({
        url:'/api/stores/createServe',
        method:"post",
        data
    })
}

export const getStoreServe = async (listQuery) => {
    return await Axios({
        url:'/api/stores/Serve',
        method:"get",
        params:listQuery
    })
}
export const updateStoreServe = async (listQuery) => {
    return await Axios({
        url:'/api/stores/updateServe',
        method:"post",
        data:listQuery
    })
}
export const deleteStoreServe = async (_id) => {
    return await Axios({
        url:'/api/stores/deleteServe',
        method:"post",
        data:{_id}
    })
}
